#!/bin/bash

# From node
FROM_NODE=$1

# To node
TO_NODE=$2

# Count of slots
SLOTS=$3

# Host
HOST=$4

# Port
PORT=$5

./redis-trib.rb reshard --from ${FROM_NODE} --to ${TO_NODE} --slots ${SLOTS} --yes ${HOST}:${PORT}
